<?php /* Smarty version 2.6.20, created on 2016-04-11 20:05:36
         compiled from withdraw_apply.htm */ ?>
<?php require_once(SMARTY_CORE_DIR . 'core.load_plugins.php');
smarty_core_load_plugins(array('plugins' => array(array('modifier', 'date_format', 'withdraw_apply.htm', 108, false),)), $this); ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>提现申请</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link href="admin.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="../script/jquery-1.4.4.min.js"></script>
<script language="javascript" src="../script/Calendar.js"></script>
</head>
<body>
<div class="container">
    <div class="flow">
        <div class="itemtitle">
            <h3>提现申请</h3>
            <ul>
                <li <?php if ($_GET['status'] == ''): ?>class="current"<?php endif; ?>><a href="?m=<?php echo $_GET['m']; ?>
&s=<?php echo $_GET['s']; ?>
"><span>管理</span></a></li>
                <?php $_from = $this->_tpl_vars['withdraw_apply_status']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['num'] => $this->_tpl_vars['list']):
?>
                <li <?php if ($_GET['status'] != '' && $this->_tpl_vars['num'] == $_GET['status']): ?>class="current"<?php endif; ?>><a href="?m=<?php echo $_GET['m']; ?>
&s=<?php echo $_GET['s']; ?>
&status=<?php echo $this->_tpl_vars['num']; ?>
"><span><?php echo $this->_tpl_vars['list']; ?>
</span></a></li>
                <?php endforeach; endif; unset($_from); ?>
            </ul>
        </div>
    </div>
    <div class="h35"></div>
    <form action="" method="get">
        <input type="hidden" name="m" value="product">
        <input type="hidden" name="s" value="withdraw_apply.php">
        <table class="select_table">
            <tbody>
                <tr>
                    <td width="60">会员ID:</td>
                    <td width="100"><input id="rec_member_id" type="text" name="rec_member_id" class="w100" value="<?php echo $_GET['rec_member_id']; ?>
" /></td>
                    <td width="50">状态:</td>
                    <td width="30">
                        <select name="status">
                            <option value="">全部</option>
                            <option value="0" <?php if ('0' == $_GET['status']): ?>selected<?php endif; ?>>未审核</option>
                            <option value="1" <?php if ('1' == $_GET['status']): ?>selected<?php endif; ?>>审核通过</option>
                            <option value="-2" <?php if ('-2' == $_GET['status']): ?>selected<?php endif; ?>>审核未通过</option>
                            <option value="-1" <?php if ('-1' == $_GET['status']): ?>selected<?php endif; ?>>已取消</option>
                            <option value="9" <?php if ('9' == $_GET['status']): ?>selected<?php endif; ?>>已打款</option>
                        </select>
                    </td>
                    <input type="hidden" id="order" name="" value="" />
                    <td><input id="search" type="image" src="<?php echo $this->_tpl_vars['config']['weburl']; ?>
/image/admin/search.gif" /></td>
                </tr>
                
            </tbody>
        </table>
    </form>
        
    <table class="table product">
       <tbody>
       <tr class="header">
            <th width="60">操作</th>
            <th width="80">用户ID</th>
            <th width="150">用户名称</th>
            <th width="100">用户类型</th>
            <th width="100">账户类型</th>
            <th width="150">提现账户</th>
            <th width="100">收款人</th>
            <th width="150">提现金额</th>
            <th width="150">账户银行地址</th>
            <th width="150">联系电话</th>
            <th width="100">申请时间</th>
            <th width="100">审核时间</th>
            <th width="100">审核人</th>
            <th width="100">打款时间</th>
            <th width="100">打款人</th>
            <th width="100">打款账户类型</th>
            <th width="100">打款账号</th>
            <th width="100">打款交易流水号</th>
            <th width="130">状态</th>
            <th width="130">备注</th>
        </tr>
        <?php $_from = $this->_tpl_vars['de']['list']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['list']):
?>
        <tr class="<?php if ($this->_tpl_vars['list']['status'] == 1): ?>bold<?php endif; ?>">
            <td>
            <?php if ($this->_tpl_vars['list']['status'] != -1 && $this->_tpl_vars['list']['status'] != 9): ?>
            <div class="operate">
                <a class="opear" href="#">操作<i></i></a>
                <ul>
					<?php if ($this->_tpl_vars['list']['status'] == 0): ?>
					<li><a class="a-opear" data-type="pass" data-param="{'id':'<?php echo $this->_tpl_vars['list']['id']; ?>
'}" href="#">审核通过</a></li>
					<li><a class="a-opear" data-type="not_pass" data-param="{'id':'<?php echo $this->_tpl_vars['list']['id']; ?>
'}" href="#">不通过</a></li>
					<?php endif; ?>
					<?php if ($this->_tpl_vars['list']['status'] == 1): ?>
					<li><a class="a-opear" data-type="complete" data-param="{'id':'<?php echo $this->_tpl_vars['list']['id']; ?>
'}" href="#">打款</a></li>
					<?php endif; ?>
					<li><a class="a-opear" data-type="cancel" data-param="{'id':'<?php echo $this->_tpl_vars['list']['id']; ?>
'}" href="#">取消</a></li>
                </ul>
            </div>
            <?php elseif ($this->_tpl_vars['list']['status'] == 9): ?>
            已打款
            <?php else: ?>
            已取消
            <?php endif; ?>
            </td>
            <td><?php echo $this->_tpl_vars['list']['member_id']; ?>
</td>
            <td><?php echo $this->_tpl_vars['list']['name']; ?>
</td>
            <td><?php echo $this->_tpl_vars['list']['member_type']; ?>
</td>
            <td><?php echo $this->_tpl_vars['list']['account_type_str']; ?>
</td>
            <td><?php echo $this->_tpl_vars['list']['account_number']; ?>
</td>
            <td><?php echo $this->_tpl_vars['list']['account_name']; ?>
</td>
            <td><?php echo $this->_tpl_vars['list']['apply_money']; ?>
</td>
            <td><?php echo $this->_tpl_vars['list']['account_bank_addr']; ?>
</td>
            <td><?php echo $this->_tpl_vars['list']['mobile']; ?>
</td>
            <td><?php echo $this->_tpl_vars['list']['apply_time']; ?>
</td>
            <td><?php if ($this->_tpl_vars['list']['examine_time']): ?><?php echo ((is_array($_tmp=$this->_tpl_vars['list']['examine_time'])) ? $this->_run_mod_handler('date_format', true, $_tmp, "%Y-%m-%d %H:%M:%S") : smarty_modifier_date_format($_tmp, "%Y-%m-%d %H:%M:%S")); ?>
<?php endif; ?></td>
            <td><?php echo $this->_tpl_vars['list']['examine_user']; ?>
</td>
            <td><?php if ($this->_tpl_vars['list']['finish_time']): ?><?php echo ((is_array($_tmp=$this->_tpl_vars['list']['finish_time'])) ? $this->_run_mod_handler('date_format', true, $_tmp, "%Y-%m-%d %H:%M:%S") : smarty_modifier_date_format($_tmp, "%Y-%m-%d %H:%M:%S")); ?>
<?php endif; ?></td>
            <td><?php echo $this->_tpl_vars['list']['finish_user']; ?>
</td>
            <td><?php echo $this->_tpl_vars['list']['money_account_type_str']; ?>
</td>
            <td><?php echo $this->_tpl_vars['list']['money_account_number']; ?>
</td>
            <td><?php echo $this->_tpl_vars['list']['transaction_serial_number']; ?>
</td>
            <td><?php echo $this->_tpl_vars['list']['status_name']; ?>
</td>
            <td><?php echo $this->_tpl_vars['list']['discription']; ?>
</td>
        </tr>
        <?php endforeach; else: ?>
        <tr>
            <td class="norecord" colspan="99"><i></i><span>暂无符合条件的数据记录</span></td>
        </tr>
        <?php endif; unset($_from); ?>
        </tbody>
        <tfoot>
            <tr>
                <td colspan="99">
                    <div class="fl">每页最多显示： 20条</div>
                    <div class="page"><?php echo $this->_tpl_vars['de']['page']; ?>
</div>
                    <div class="fr">共有<?php echo $this->_tpl_vars['de']['count']; ?>
条记录</div>
                </td>
            </tr>
        </tfoot>
    </table>
<script>
$(".a-opear").live('click',function(){
    
    var data = $(this).attr('data-param');
    eval("data = "+data);
    var type = $(this).attr('data-type');
    if(!data.id)
    {
        error('error','对不起，请选择申请后操作！');
        return false;
    }
    
    window.parent.ajax_form("withdraw_apply", "操作提现申请", '<?php echo $this->_tpl_vars['config']['weburl']; ?>
/admin/module.php?m=product&s=withdraw_apply.php&type='+type+'&id='+data.id, 800);
    return false;
    
});
$('.operate').hover(function(){                  
    if ($(this).position().top + $(this).children("ul").height() + $(this).parent("td").height() - $(window).height()- $(window).scrollTop()  < 0) {
        $(this).addClass("hover");
        $(this).children("ul").css("top", "22px");
    } else {
        $(this).addClass("hover-up");
        $(this).children("ul").css("top", -$(this).children("ul").height());
    }
},function(){
    $(this).removeClass("hover").removeClass("hover-up");   
});
$('.search').bind("mouseenter", function (e) {
    $(this).addClass("hover");
}).bind("mouseleave", function (e) {
    //$(this).removeClass("hover");
});
$('.close').bind("click", function (e) {
    $(this).parent().parent().removeClass("hover");
}) 
</script>    
</div>
</body>
</html>